package gsp420.game;

public class Enemy extends Player {
	/** how long the enemy has been waiting to move */
	private int timer;
	/** how long the enemy needs to wait between moves */
	private int delay;
	public Enemy()
	{
		timer = 0;
		delay = 200;
	}
	public void update(int a_ms)
	{
		timer += a_ms;
		if(timer > delay)
		{
			timer -= delay;
			String moves = "wasd";
			nextMove = moves.charAt((int)(Math.random()*4));
		}
		super.update(a_ms);
	}
}
